﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" EnableEventValidation="false"
    ValidateRequest="false" AutoEventWireup="true" CodeFile="PurchaseAdd.aspx.cs"
    Inherits="member_Trade_Purchase" Title="求购信息" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="server">

    <script type="text/javascript" language="javascript">
     function  textValue(){
          var   c=document.all('ctl00_ContInfo_dropUnit');  
          var danwei=c.options[c.selectedIndex].value;
          ctl00_ContInfo_danwei.innerHTML="元/"+danwei;
          ctl00_ContInfo_gonghuo.innerHTML=danwei;     
      }   
    </script>

    <script type="text/javascript" src="../../js/calendar.js"></script>

    <script type="text/javascript" src="../../js/Industry.js"></script>
    <div class="inkg mar_top">
    <form id="form1" action="">
            <asp:HiddenField ID="txtSortB" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtSortM" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtSortS" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="txtSortF" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="txtSortW" runat="server"></asp:HiddenField>
            <strong class="inkgt">
                发布求购信息</strong>    
            <div class="intip mar_top">
                 <strong class="intipt">
                    <span id="Htab_on2" onclick="document.getElementById('important_note').style.display=='block'||document.getElementById('important_note').style.display==''?document.getElementById('important_note').style.display='none':document.getElementById('important_note').style.display='block'; document.getElementById('Htab_on2').className=='Htab_on2'?document.getElementById('Htab_on2').className='Htab_off2':document.getElementById('Htab_on2').className='Htab_on2'"
                        style="cursor: hand">重要提醒</span>
                </strong>
                <p>
                    为了让买家能更精确找到您的产品，您可以做以下几步提高您的信息精度，获得更好的排名：</p>
                   <p> 1、一条信息只发布一个产品；</p>
                    <p>2、选择与您产品符合的类目。</p>
                    <p>3、发布的信息带图且填写产品属性。</p>
                    <p>4、为了提高信息质量，请您注意不要发布重复信息，重复信息将无法成功发布！</p>
                    <i class="lt"></i><i class="lb"></i>
            </div>
            <asp:Label ID="lblMessage" runat="server" Visible="false" ForeColor="red"></asp:Label>
            <a name="flagKeyword"></a>
            <table border="0" cellpadding="0" cellspacing="0" class="addtb">
                        <thead>
                <tr>
                    <td colspan="2">
                        基本信息 <span class="f_c00">*</span>为必填项
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="tblt">
                        产品名称：<span class="f_c00">*</span></td>
                    <td >
                            <asp:TextBox MaxLength="20" ID="txtName" runat="server" Width="200px">
                            </asp:TextBox>
                        <div id="txt0">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品关键字：<span class="f_c00">*</span></td>
                    <td >
                            <asp:TextBox ID="txtKey" MaxLength="16" runat="server" Width="200px">
                            </asp:TextBox>
                            <div id="txt1">
                            </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品所属类目：<span class="f_c00">*</span></td>
                    <td >
                        <span>
                            <select id="SortB" name="SortB" runat="server" size="8" style="width: 132px">
                            </select>
                            <select id="SortM" name="SortM" runat="server" size="8" style="width: 132px">
                            </select>
                            <select id="SortS" name="SortS" runat="server" size="8" style="width: 132px">
                            </select>
                    <select id="SortF" name="SortF" runat="server" size="8" style="width: 132px">
                    </select>
                    <select id="SortW" name="SortW" runat="server" size="8" style="width: 132px">
                    </select>
                        </span>
                        <div id="txt10">
                        </div>
                    </td>
                </tr>
                <tr>
                    <a name="xiangxi"></a>
                    <td class="tblt">
                        有效期：<span class="f_c00">*</span>
                    </td>
                    <td >
                        <span>
                            <asp:RadioButtonList ID="RadioTime" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="10">10天</asp:ListItem>
                                <asp:ListItem Value="20">20天</asp:ListItem>
                                <asp:ListItem Value="30">1个月</asp:ListItem>
                                <asp:ListItem Value="90">3个月</asp:ListItem>
                                <asp:ListItem Selected="True" Value="180">6个月</asp:ListItem>
                            </asp:RadioButtonList>
                        </span>
                        <div id="txt20">
                        </div>
                        <div id="txt30">
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        详细信息
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="tblt">
                        包装说明：
                    </td>
                    <td >
                        <asp:TextBox MaxLength="30" ID="txtBrand" runat="server" ></asp:TextBox>
                        <div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品规格：</td>
                    <td >
                        <asp:TextBox MaxLength="30" ID="txtModel" runat="server" ></asp:TextBox>
                        <div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        详细说明：
                    </td>
                    <td align="left" style="height: 24px" >
                        <FCKeditorV2:FCKeditor ID="txtContent" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="400" Width="600">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品图片：
                    </td>
                    <td >
                        <asp:HiddenField ID="ImgUrl1" runat="server" />
                        <a href="" id="txturldz" target="_blank">
                            <img border="0" src="../../Images/System/wutu.gif" id="ImgUrl" name="ImgUrl" alt=""
                                runat="server" style="width: 106px; height: 95px" /></a><br />
                        <input id="txtupload" type="button" value="上传" onclick="return rowTest()" /><br />
                        <div id="rowTest" style="display: none">
                            <iframe name="tag" src="../Tool/Upload.html" style="width: 550px; height: 120px"
                                frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                            </iframe>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        交易条件&nbsp;&nbsp;&nbsp;&nbsp;建议详细填写交易条件，否则买家无法为您的产品下订单
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="tblt">
                        计量单位：
                    </td>
                    <td >
                            <asp:DropDownList ID="dropUnit" runat="server" onchange="textValue();">
                            </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        需求数量：
                    </td>
                    <td >
                    <div style=" float:left; overflow:hidden; margin-right:20px;">
                        <span>
                            <asp:TextBox onkeyup="if(event.keyCode!=37&&event.keyCode!=39)value=value.replace(/\D/g,'');" ID="txtCount" runat="server" Width="75px" MaxLength="7" Text="10"></asp:TextBox></span>
                        <div id="gonghuo" runat="server">
                            包
                        </div>
                        </div>
                        <div id="txt4" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品单价：
                    </td>
                    <td >
                    <div style=" float:left; overflow:hidden; margin-right:20px;">
                        <span>
                            <asp:TextBox ID="txtPrice" runat="server" Width="75px" MaxLength="7" Text="1"></asp:TextBox></span>
                        <div id="danwei" runat="server">
                            元/包</div></div>
                        <div id="txt5" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        联系方式的确认与修改&nbsp;&nbsp;&nbsp;&nbsp;若有误,您发布的信息将无法通过审核,<a target="_blank" href="../UserInfo/LinkManInfo.aspx" style="color: Red;
                        text-decoration: underline">点此修改</a>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="13%" class="tblt">
                        姓名：</td>
                    <td >
                        <asp:Label ID="UserName" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="tblt">
                        电话：</td>
                    <td >
                        <asp:Label ID="UserTelephone" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="tblt">
                        QQ：</td>
                    <td >
                        <asp:Label ID="UserChuanzhen" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="tblt">
                        公司名称：</td>
                    <td >
                        <asp:Label ID="CompanyName" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="tblt">
                        Email：</td>
                    <td >
                        <asp:Label ID="Email" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="height: 45px; border-bottom: 1px #CCCCCC solid;">
                        <asp:Button ID="btnSave" runat="server" Style="cursor: hand" Text="同意服务条款，我要发布" OnClick="btnSave_Click"
                            CssClass="i_button" />
                    </td>
                </tr>
                </tbody>
            </table>
    </form>
</div>
    <script language="javascript" type="text/javascript">
	   setup(1);
    </script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript" src="../js/Purchase.js"></script>

</asp:Content>
